package com.kedsoft.andaily.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kedsoft.andaily.entity.Cunsumer;
import com.kedsoft.andaily.mapper.CunsumerMapper;
import com.kedsoft.andaily.service.CunsumerService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LGP
 * @since 2019-04-10
 */
@Service
public class CunsumerServiceImpl extends ServiceImpl<CunsumerMapper, Cunsumer> implements CunsumerService {
    public Cunsumer getCunsumerByMobile(String mobile)
    {
        EntityWrapper<Cunsumer> wrapper = new EntityWrapper<>();
        wrapper.eq("mobile", mobile);
        return selectOne(wrapper);
    }
}
